package com.ecut.property_project.service.project;

import com.ecut.property_project.mapper.project.ProjectHeadMapper;
import com.ecut.property_project.model.project.ProjectHead;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectHeadService{

    @Resource
    private ProjectHeadMapper projectHeadMapper;

    
    public int deleteByPrimaryKey(String projectId) {
        return projectHeadMapper.deleteByPrimaryKey(projectId);
    }

    
    public int insert(ProjectHead record) {
        return projectHeadMapper.insert(record);
    }

    
    public int insertSelective(ProjectHead record) {
        return projectHeadMapper.insertSelective(record);
    }

    public List<ProjectHead> selectAll(){ return projectHeadMapper.selectAll(); }

    public List<ProjectHead> selectByPage(Integer page, Integer pageSize){return projectHeadMapper.selectByPage(page,pageSize);}

    public ProjectHead selectByPrimaryKey(String projectId) {
        return projectHeadMapper.selectByPrimaryKey(projectId);
    }

    
    public int updateByPrimaryKeySelective(ProjectHead record) {
        return projectHeadMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ProjectHead record) {
        return projectHeadMapper.updateByPrimaryKey(record);
    }

}
